file(GLOB_RECURSE SRC_NETWORK ${CMAKE_SOURCE_DIR} "networkSet/*.c" "networkSet/*.cpp")
file(GLOB_RECURSE SRC_SUBCOMPONENTS ${CMAKE_SOURCE_DIR} "subcomponents/*.c" "subcomponents/*.cpp")
file(GLOB_RECURSE SRC_AUDIO ${CMAKE_SOURCE_DIR} "audio/*.c" "audio/*.cpp")

idf_component_register(
        SRCS
            "main.cpp"
            "app.c"
            ${SRC_NETWORK}
            ${SRC_SUBCOMPONENTS}
            ${SRC_AUDIO}
        INCLUDE_DIRS
            "."
            "networkSet"
            "subcomponents"
            "audio"
        EMBED_FILES "index.html"
)

spiffs_create_partition_image(storage ../spiffs FLASH_IN_PROJECT)
